import request from '@/utils/request'

// 查询物资库存列表
export function listSysInventory(query) {
  return request({
    url: '/SysFeedingRecords/SysInventory/list',
    method: 'get',
    params: query
  })
}

// 查询物资库存详细
export function getSysInventory(id) {
  return request({
    url: '/SysFeedingRecords/SysInventory/' + id,
    method: 'get'
  })
}

// 新增物资库存
export function addSysInventory(data) {
  return request({
    url: '/SysFeedingRecords/SysInventory',
    method: 'post',
    data: data
  })
}

// 修改物资库存
export function updateSysInventory(data) {
  return request({
    url: '/SysFeedingRecords/SysInventory',
    method: 'put',
    data: data
  })
}

// 删除物资库存
export function delSysInventory(id) {
  return request({
    url: '/SysFeedingRecords/SysInventory/' + id,
    method: 'delete'
  })
}
